package com.qyer.lxp.model.booklimits.normal;

import com.qyer.lxp.model.product.normal.ProductBookAnswer;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.List;

/**
 * 获取产品预定需要填写的问题信息
 * Created by wangzhen on 16/5/18.
 */

@XmlRootElement(name = "book-question")
@XmlAccessorType(XmlAccessType.FIELD)
public class BookQuestion implements Serializable{
    private static final long serialVersionUID = 2299530736223326143L;


    /**
     * 问题编码
     */
    @XmlElement(name = "code")
    private String code;

    /**
     * 内容
     */
    @XmlElement(name = "content")
    private String content;

    /**
     * 是否必须回答
     */
    @XmlElement(name = "required")
    private String required;

    /**
     * 示例
     */
    @XmlElement(name = "example")
    private String example;

    /**
     * 回答
     */
    @XmlElementWrapper(name = "answer-list")
    @XmlElement(name = "answer")
    private List<BookAnswer> bookAnswers;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRequired() {
        return required;
    }

    public void setRequired(String required) {
        this.required = required;
    }

    public List<BookAnswer> getBookAnswers() {
        return bookAnswers;
    }

    public void setBookAnswers(List<BookAnswer> bookAnswers) {
        this.bookAnswers = bookAnswers;
    }

    public String getExample() {
        return example;
    }

    public void setExample(String example) {
        this.example = example;
    }
}
